import request from '../utils/request'
import qs from "qs"

// 获取
export let getlistApi = (params) => request({
    url: "/msbd/list",
    method: "get",
    params,
    baseURL: "http://localhost:2000"
})

// 新增
export let addlistApi = (data) => request({
    url: "/msbd/addList",
    method: "post",
    data: qs.stringify({ ...data }),
    baseURL: "http://localhost:2000"
})

// 修改
export let updatelistApi = (data) => request({
    url: "/msbd/updateList",
    method: "post",
    data: qs.stringify({ ...data }),
    baseURL: "http://localhost:2000"
})

// 删除
export let deletelistApi = (params) => request({
    url: "/msbd/delList",
    method: "get",
    params,
    baseURL: "http://localhost:2000"
})

